<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'MyJsp.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="images/skin.css" rel="stylesheet" type="text/css" />
		<link href="images/fox.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

		<script type="text/javascript" src="js/jquery.js">
</script>
		<script type="text/javascript" language="JavaScript">

$(function() { //文档加载 
	$(".tbody tr").hover(function() {
		$(this).addClass("hover"); //鼠标经过添加hover样式 
		}, function() {
			$(this).removeClass("hover"); //鼠标离开移除hover样式 
		});
});
</script>
		<style type="text/css">
.hover {
	background-color: #CACACA;
} /*这里是鼠标经过时的颜色*/
</style>
		<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
	</head>
	<script type="text/javascript">
function forward() {
	location = "";
}
</script>
	<body>

		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="17" valign="top" background="images/mail_leftbg.gif">
					<img src="images/left-top-right.gif" width="17" height="29" />
				</td>
				<td valign="top" background="images/content-bg.gif">
					<table width="100%" height="31" border="0" cellpadding="0"
						cellspacing="0" class="left_topbg" id="table2">
						<tr>
							<td height="31">
								<div class="titlebt">
									销售管理
								</div>
							</td>
						</tr>
					</table>
				</td>
				<td width="16" valign="top" background="images/mail_rightbg.gif">
					<img src="images/nav-right-bg.gif" width="16" height="29" />
				</td>
			</tr>
			<tr>
				<td valign="middle" background="images/mail_leftbg.gif">
					&nbsp;
				</td>
				<td valign="top" bgcolor="#F7F8F9">
					<table width="98%" border="0" align="center" cellpadding="0"
						cellspacing="0" class="line_table">
						<tr>
							<td width="20">
								<img src="images/icon-login-seaver.gif" width="16" height="16" />
							</td>
							<td>
								当前位置：销售管理>>制定全年销售计划>>创建全年销售计划(sellPlanCreate.jsp)
							</td>

						</tr>
					</table>

					<form action="yearSale!addYearSale.action">
						<table width="98%" border="0" align="center" cellpadding="0"
							cellspacing="0" class="line_table">
							<tr>
								<td width="100%" align="center">
									<input type="submit" class="Submit" value="保存销售计划"
										style="width: 100px" />
								</td>
							</tr>
						</table>

						<table width="98%" border="0" align="center" cellpadding="0"
							cellspacing="0" class="line_table">
							<thead class="thead">
								<tr>
									<th width="6%">
										序号
									</th>
									<th width="10%">
										年份
									</th>
									<th width="16%">
										品牌
									</th>
									<th width="16%">
										车型编码
									</th>
									<th width="19%">
										车型特征
									</th>
									<th width="15%">
										计划采购
									</th>
									<th width="18%">
										计划销售数量
									</th>
								</tr>
							</thead>
							<tbody class="tbody">
								<s:property value="#request.message" />
								<s:iterator value="#request.currentUnplanInfo" var="cui"
									status="stat">
									<tr>
										<td align="center">
											<s:property value="#stat.count" />
										</td>
										<td align="center">
											<s:property value="#request.currentYear" />
										</td>
										<td align="center">
											<s:property value="brand.brandName" />
										</td>
										<td align="center">
											<s:property value="modelCode" />
										</td>
										<td align="center">
											<s:property value="modelFeature" />
										</td>
										<td align="center">
											<s:iterator value="#cui.yearpurchases" var="cyc">
												<s:if test="year == #request.currentYear">
													<a style="color: #CC0000"> <s:property
															value="planPurchaseCount" /> </a>
												</s:if>
											</s:iterator>
											<s:else>
												<a style="color: #CC0000"> 暂无 </a>
											</s:else>
										</td>
										<td align="center">
											<input type="text" class="login_text" value="0"
												name="planSaleCount" />
										</td>
									</tr>
								</s:iterator>
								<s:debug></s:debug>
						</table>
					</form>					
				</td>
				<td background="images/mail_rightbg.gif">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td valign="bottom" background="images/mail_leftbg.gif">
					<img src="images/buttom_left2.gif" width="17" height="17" />
				</td>
				<td background="images/buttom_bgs.gif">
					<img src="images/buttom_bgs.gif" width="17" height="17">
				</td>
				<td valign="bottom" background="images/mail_rightbg.gif">
					<img src="images/buttom_right2.gif" width="16" height="17" />
				</td>
			</tr>
		</table>
		添加页面说明：
		<br />
		1.每条车型字典数据每年对应一条销售计划。
		<br />
		2.进入页面后首先应该判断，本年是否还有未做销售计划的车型，如果有将给未做计划的车型做计划，如果没有那么什么都不显示，或者给予用户提示。
	</body>
</html>
